cmake_minimum_required(VERSION 3.22)
project(nanopb-test)

include_directories(nanopb dump_hex)

add_library(proto STATIC nanopb/pb_common.c nanopb/pb_decode.c nanopb/pb_encode.c nanopb/config.pb.c)
add_library(dump-hex STATIC dump_hex/dump_hex.c)

add_executable(nanopb-test main.c)
target_link_libraries(nanopb-test proto dump-hex)
